package com.hongdee.crm.weChat.controller;

import com.hongdee.crm.weChat.service.ITCrmBcBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Liu XiaoLong
 * Date: 2017/10/23.
 * Remark:
 */
@RestController
@RequestMapping("/api/crm/brand")
public class WechatTBcBrandController {
    @Autowired
    private ITCrmBcBrandService itCrmBcBrandService;

    @RequestMapping("/list")
    public Map getBrandList(@RequestParam(name = "uid",defaultValue = "") String uid,
                            @RequestParam(name = "token",defaultValue = "") String token) throws Exception{
        Map map = new HashMap();
        map.put("dataList",itCrmBcBrandService.getBrandList(uid));
        map.put("success",true);

        return map;
    }
}
